package cn.elead.chaos.core.map;

import java.util.Map;

/**
 * @author 赵光
 * @desc 等价于Map<String, String>, 功能增强
 * @Date 2018年11月26日 下午4:24:19
 */
public class CommonMap extends DefaultMap<String> {

	private static final long serialVersionUID = 1L;

	public CommonMap() {
	}

	public CommonMap(String key, String value) {
		put(key, value);
	}

	public CommonMap(Map<String, String> map) {
		putAll(map);
	}

	public static CommonMap newMap() {
		return new CommonMap();
	}

	public static CommonMap newMap(String input) {
		return new CommonMap(Maps.parseMap(input));
	}

	public static CommonMap newMap(String key, String value) {
		return new CommonMap(key, value);
	}

	public static CommonMap newMap(Map<String, String> map) {
		return new CommonMap(map);
	}
}
